package org.lucky_common.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.io.Serializable;

@Data
public class AdminExportVo implements Serializable {

    @Excel(name = "编号")
    private Long id;

    @Excel(name = "用户名")
    private String username;

    @Excel(name = "密码")
    private String password;

    @Excel(name = "盐值")
    private String salt;

    @Excel(name = "是否已登录")
    private String isLogin;

    @Excel(name = "登录Id")
    private String logininfo_id;

    @Excel(name = "邮箱")
    private String email;

    @Excel(name = "头像地址")
    private String headImage;

    public static final ThreadLocal<Integer> threadLocal_collectionSize = new ThreadLocal<>();
    public static final ThreadLocal<Integer> threadLocal_insertIndex = new ThreadLocal<>();

    public Long getUsername() {
        Integer insertIndex = threadLocal_insertIndex.get();
        insertIndex++;
        threadLocal_insertIndex.set( insertIndex );
        return id;
    }
}
